import scrapy


class LoginSpider(scrapy.Spider):

    name = 'login'

    def start_requests(self):
        cookies = {'sessionid': 'denfigkhryb3fun17kwraay6arx51cph'}
        urls = ['http://172.25.254.101:8000/admin/polls/question/']
        for url in urls:
            yield scrapy.Request(url, cookies=cookies)

    def parse(self, response):
        open('xx.html', 'w').write(response.text)
